using Cysharp.Threading.Tasks;
using UnityEngine;
using UnityEngine.U2D;
namespace Client.Hotfix
{
    public interface ILoader
    {
        void Destroy();
        UniTask<bool> LoadSceneSync(string location);
        UniTask<GameObject> LoadPrefabSync(string location);
        UniTask<AudioClip> LoadSoundSync(string location);
        UniTask<TextAsset> LoadConfigSync(string location);
        UniTask<string> LoadVideoSync(string location);
        UniTask<SpriteAtlas> LoadAtlasSync(string location);
        UniTask<Texture2D> LoadTexture2DSync(string location);

        void ReleaseAsset(string location);
        void UnloadUnusedAssetsAsync();
    }
}

